package com.example.common.entity;

import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 代码质量结果表
 * @author DestinyCc
 * @TableName code_quality_result
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class CodeQualityResult extends OpenApiBaseEntity implements Serializable {
    /**
     * 代码质量对应的用户
     */
    private Long tenantId;

    /**
     * 对应github的owner
     */
    private String owner;

    /**
     * 对应github的repo
     */
    private String repo;

    /**
     * 可靠性数值
     */
    private Double reliability;

    /**
     * 复杂性数值
     */
    private Double complexity;

    /**
     * 可继承性数值
     */
    private Double inheritance;

    /**
     * 可维护性数值
     */
    private Double maintainability;

    /**
     * 可读性数值
     */
    private Double readability;

    /**
     * 可复用性数值
     */
    private Double reuseablity;

    /**
     * 可测试性数值
     */
    private Double testability;

    /**
     * 可扩展性数值
     */
    private Double extendability;

    /**
     * 安全性数值
     */
    private Double security;

    public CodeQualityResult(Long id, String tenantId,String owner, String repo){
        super();
        super.setId(id);
        this.owner = owner;
        this.repo = repo;
        this.tenantId = Long.parseLong(tenantId);
    }
}